package Homework5;

import java.util.Date;

public class TV extends Household{
    private int channel = 1;
    private int volumnLevel = 1;

    public TV(){}

    public TV(String brand, Date productDate){
        super(brand, productDate);
    }

    public int getChannel() {
        return channel;
    }

    public void setChannel(int channel) {
        this.channel = channel;
    }

    public int getVolumnLevel() {
        return volumnLevel;
    }

    public void setVolumnLevel(int volumnLevel) {
        this.volumnLevel = volumnLevel;
    }

    @Override
    public String toString(){
        return "TV: brand = " + getBrand() +
                " productDate = " + getProductDateString() +
                 " channel = " + getChannel() +
                 " volumnLevel = " + getVolumnLevel();
    }
}
